{% extends "profiles/base.html" %}

{% block title %}edit your profile - {{block.super}}{% endblock %}
{% block content %}

<h1>Hello {{profile.display_name}}!</h1>
<h2>Edit your Profile</h2>

<h3>Password</h3>
<a href="{% url auth_password_change %}">Change your password</a>

<h3>Email Address</h3>
Your email address: {{profile.user.email}} <a href="{% url email_change %}">(change)</a><br/>

<h3>Trac Settings</h3>
<a href="/dev/prefs/">Edit Trac settings</a>

{% if subscriptions %}
<h3>Subscriptions</h3>
    <p>You subscribed to the following items (click on the icon to unsubscribe):</p>
    <ul>
    {% for subscription in subscriptions %}
      <li>
        {% subscription_link request subscription.kind subscription.object_id "True" %}
        {{ subscription.get_name }}
      
      </li>
    {% endfor %}
    </ul>
{% endif %}

<h3>Adjustable Settings and Information</h3>
    {% if preview %}
    <h4>Preview (description only)</h4>
      <div class="preview">
          {{preview.raw_description|safe}}
            
      </div>
      <h4>Edit</h4>
      {% endif %}
      
      <!-- new profile -->
      


   
      
<form action="#" method="post" class="styled" >
    {% for name, fields in form.groups %}
        {% if name %}
          <fieldset>
          <legend>{{name}}</legend>
        {% endif %}
        
        <table>
            {% for field in fields %}    
              <tr><th>{{field.label}}</th><td>{{field.errors}}{{field}}{% if field.help_text %}<br/>{{field.help_text}}{% endif %}</td></tr>
            {% endfor %}
        </table>
        
        {% if name %}    
          </fieldset>
        {% endif %}
    
    {% endfor %}
    
    <p>
       <input type="submit" name="preview" value="Preview" class="button" />
       <input type="submit" name="submit" value="Change" class="button" />
    </p>
</form>



{% endblock %}
 
 
 
